#include<stdio.h>
int main(){
    int count1,count2,count3,count4;
    char ch;
    printf("请输入十个字符:");
    count1=count2=count3=count4=0;
    for (int i = 0; i < 10; i++) {
        ch=getchar();

        if ((ch>='a' && ch<='z')||(ch>='A' && ch<='Z'))
            count1++;
        else if(ch>='0' && ch<='9')
            count2++;
        else if(ch==' '||ch=='\n')
            count3++;
        else
            count4++;}
    printf("其中英文字母有%d个，数字字符有%d个，空格或回车有%d个,其他字符有%d个",count1,count2,count3,count4);
    return 0;
}